<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<button id="btn">打开2</button>
	<input type="text" id="t">
<script>
	var btn = document.getElementById('btn');
	var t = document.getElementById('t');
	t.onfocus = function(){
		alert();
	}
	console.log(window.location.href);
	btn.onclick = function(){
		window.open('2.html');//打开以当前窗口为opener的子窗口
	}



</script>
</body>
</html>